from task import Task
sets = []
CompuCostlist =  [6, 6, 6, 6, 6, 6]
UpCostlist = [6, 6, 6, 6, 6, 6]
Mid_ddl_list = [10, 9, 19, 18, 9, 9]
DDL_list = [48, 42, 36, 30, 24, 18]
Period_list = [54, 54, 54, 54, 54, 54]
until = 100000
def GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list):
    task_set = []
    for i in range(len(CompuCostlist)):
        c_i = CompuCostlist[i]
        r_i = UpCostlist[i]
        m_i = Mid_ddl_list[i]
        d_i = DDL_list[i]
        p_i = Period_list[i]
        task = Task(c_i,r_i,m_i,d_i,p_i)
        task_set.append(task)
    return task_set
task_set0 = GeneTaskSet(CompuCostlist,UpCostlist,Mid_ddl_list,DDL_list,Period_list)
sets.append(task_set0)
mrset = [10]